#ifndef LINKAGE_H
#define LINKAGE_H

#define L1_CACHE_BYTES 32

//规定函数参数的传参方式
#define linkage __attribute__((regparm(0)))

#define ____cacheline_aligned __attribute__((__aligned__(L1_CACHE_BYTES)))

#define SYMBOL_NAME(X)	X

#define SYMBOL_NAME_STR(X)	#X

//将变量名和:连接起来
#define SYMBOL_NAME_LABEL(X) X##:

#define ENTRY(name)		\
.global	SYMBOL_NAME(name);	\
SYMBOL_NAME_LABEL(name)

#endif